package com.cc.blog.admin.convert;

import com.cc.blog.admin.domain.vo.FindArticleDetailRspVO;
import com.cc.blog.admin.model.ArticleDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 文章转换类
 * @Author cc
 * @Date 2024/7/11 17:03
 */
@Mapper
public interface ArticleDetailConvert {

    /**
     * 初始化 convert 实例
     */
    ArticleDetailConvert INSTANCE = Mappers.getMapper(ArticleDetailConvert.class);

    /**
     * 将 DO 转化为 VO
     * @param bean
     * @return
     */
    FindArticleDetailRspVO convertDO2VO(ArticleDO bean);
}
